#!/usr/bin/env python
# -*- coding:gbk -*-

def main():
	test_str = "abcdefg"

	for i in [None] + range(-1, -len(test_str), -1):

		print test_str[:i]

if __name__ == "__main__":
	main()
